package com.situ.mall.data;

public class DiGui {
    private static  int num = 0;
    public static void main(String[] args) {
        factorial(5);
    }

    public static int factorial(int n) {
        //System.out.println(++num);
        if (n == 0 || n == 1) {
            return 1;
        }
        return n * factorial(n - 1);
    }
}
